import 'package:part_time_job_pro/common/models/work_scene.dart';
import 'package:json_annotation/json_annotation.dart';

part 'part_job_type.g.dart';
///兼职分类
@JsonSerializable()
class PartJobType {
   String? createBy;
   String? createTime;
   String? updateBy;
   String? updateTime;
   int? typeId;
   String? typeName;
   int? parentId;
   String? level;
   String? ancestors;
   String? parentName;
   int? orderNum;
   String? scene;
   String? sceneName;
   List<WorkScene>? sceneList;
   List<PartJobType>? children;
  //控制选中
  bool? checked = false;

  PartJobType({
     this.createBy,
     this.createTime,
     this.updateBy,
     this.updateTime,
     this.typeId,
     this.typeName,
     this.parentId,
     this.level,
     this.ancestors,
     this.parentName,
     this.orderNum,
     this.scene,
     this.sceneName,
     this.sceneList,
     this.children,
     this.checked,
  });

  factory PartJobType.fromJson(Map<String, dynamic> json) => _$PartJobTypeFromJson(json);

  Map<String, dynamic> toJson() => _$PartJobTypeToJson(this);

}
